// import React, { useEffect } from 'react';
// import * as THREE from 'three';
// import { GLTFExporter } from 'three/examples/jsm/exporters/GLTFExporter';
// const T3D = ()=>{
//   useEffect(()=>{
//     const scene = new THREE.Scene();
//     const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
//     const renderer = new THREE.WebGLRenderer();
//     renderer.setSize(window.innerWidth, window.innerHeight);
//     document.body.appendChild(renderer.domElement);
    
//     // 创建立方体并添加到场景中
//     const geometry = new THREE.BoxGeometry();
//     const material = new THREE.MeshBasicMaterial({ color: 0x00ff00 });
//     const cube = new THREE.Mesh(geometry, material);
//     scene.add(cube);
    
//     // 设置相机位置和目标
//     camera.position.z = 5;
//     camera.lookAt(scene.position);
    
//     // 渲染循环
//     function animate() {
//       requestAnimationFrame(animate);
//       renderer.render(scene, camera);
//     }
//     animate();
//   },[])
// return (<div>sss</div>)
// }
// export default T3D